﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp6
{
    public class Message : IMessageExt
    {
        public int TotalSize { get; set; }
        public int BodyCRC { get; set; }
        public int QueueId { get; set; }
        public long TimeStamp { get; set; }
        public string Topic { get; set; }
        public byte[] Body { get; set; }

        public void WriteTo(BinaryWriter writer)
        {
            writer.Write(TotalSize);
        }
    }
}
